/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.partaljevic.gambling.beans;

import com.partaljevic.tapestry.gambling.service.TeamService;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Nemanja
 */
public class TeamServiceBean implements TeamService{

    private List<Team> listOfTeams;

    public TeamServiceBean() {
        listOfTeams = new LinkedList<Team>();
    }


    @Override
    public Team save(Team team) {
        listOfTeams.add(team);
        return team;
    }

    @Override
    public List<Team> retreive() {
        return listOfTeams;
    }

    @Override
    public Team retreive(Serializable id) {
       return null;
    }

    @Override
    public void update(Team t) {
    }

}
